package net.siufung.simple.security.sevice.impl;

import lombok.extern.slf4j.Slf4j;
import net.siufung.security.api.provider.AbstractAccessPermitProvider;
import net.siufung.security.api.provider.PermitProviderEnum;
import org.springframework.stereotype.Component;

import java.util.Arrays;

/**
 * @author 陈建峰
 * @date 2022/10/18 5:18 下午
 * @since V1.0.0
 */
@Slf4j
@Component("permit")
public class AccessPermitProvider extends AbstractAccessPermitProvider {
    @Override
    public Boolean checkPermitValid(PermitProviderEnum permitProviderEnum, String... permit) {
        // 从缓存中取
        log.info(Arrays.toString(permit));
        return Boolean.TRUE;
    }
}
